package com.cloudkinto.service.orderinput.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author zhangyy
 * @date 2020/6/9 10:57
 * @description:
 */
@Data
@ApiModel
public class OrderInputUpdateReq {
    @ApiModelProperty("id")
    private Long id;

    /**
     * 所属店铺
     */
    @ApiModelProperty("所属店铺")
    @NotNull(message = "pls.chose.shop")
    private Long shopId;
    /**
     * 所属仓库
     */
    @ApiModelProperty("所属仓库")
    @NotNull(message = "pls.chose.storage")
    private Long storageId;
    /**
     * 交付日期
     */
    @ApiModelProperty("交付日期")
    private String deliveryDate;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date expireTime;

    /**
     * 来自码表
     */
    @ApiModelProperty("自码表")
    @NotNull(message = "pls.chose.track.way")
    private Long carriageType;

    /**
     * 来自码表
     */
    @ApiModelProperty("来自码表")
    @NotNull(message = "pls.chose.send.way")
    private Long sendType;
    /**
     * 运输追踪号
     */
    @ApiModelProperty("运输追踪号")
    private String carriageTrackNo;

    /**
     * 是否是FBA转运 0 否 1是
     */
    @ApiModelProperty("是否是FBA转运 0 否 1是")
    @NotNull(message = "pls.chose.is.fba")
    private Integer fbaTurn;

    /**
     * FBA NO号
     */
    @ApiModelProperty("FBA NO号")
    private String fbaNo;

    /**
     * FBA po号
     */
    @ApiModelProperty("FBA po号")
    private String fbaPo;

    /**
     * FBA Id号
     */
    @ApiModelProperty("FBA Id号")
    private Long fbaStorageId;

    /**
     * fba 附件
     */
    @ApiModelProperty("fba 附件")
    private Long fbaFileId;

    /**
     * 清关 附件
     */
    @ApiModelProperty("清关 附件")
    private Long clearFileId;


    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String tips;

    @ApiModelProperty("产地")
    private String countryName ;

    private List<OrderInputPackageAdd> packageList;

    @ApiModelProperty("产品有效期")
    private List<OrderInputProductExpireReq> productExpireList;
}
